Send the print job title to the previewer
authorCarlos Garcia Campos <carlosgc@gnome.org>
Tue, 7 Apr 2009 17:02:48 +0000 (19:02 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Fri, 10 Apr 2009 09:53:11 +0000 (11:53 +0200)
The previewer should know the print job title too, it could be included
in the print settings file. Fixes bug #561345

gtk/gtkprintoperation-unix.c

index 875c5c0e2585c42a020555bce8f39f5fa22ea092..6ec4ebdd8cf76d523cd294021c51621c66caa0cf 100644 (file)
@@ -216,6 +216,8 @@ _gtk_print_operation_platform_backend_launch_preview (GtkPrintOperation *op,
   page_setup = gtk_print_context_get_page_setup (op->priv->print_context);
   gtk_page_setup_to_key_file (page_setup, key_file, NULL);
 
+  g_key_file_set_string (key_file, "Print Job", "title", op->priv->job_name);
+
   data = g_key_file_to_data (key_file, &data_len, &error);
   if (!data)
     goto out;